import request from '@/utils/request'

// 账号登录
export function login(data) {
    return request({
        url: '/tablepc/AdminUserLogin/login',
        method: 'post',
        data
    })
}

// 故障申报
export function addMalfunctionInfo(data) {
    return request({
        url: '/tablepc/Malfunction/addMalfunctionInfo',
        method: 'post',
        data
    })
}

// 查询错误代码选择框信息
export function getErrorCodeList(params) {
    return request({
        url: '/tablepc/Malfunction/getErrorCodeList',
        method: 'get',
        params
    })
}

// 查询云打印机操作记录
export function getCloudPrinterOperatingRecord(params) {
    return request({
        url: '/tablepc/PrinterOperatingRecord/getCloudPrinterOperatingRecord',
        method: 'get',
        params
    })
}

// 新增/修改云打印机操作记录
export function changeCloudPrinterOperatingRecord(data) {
    return request({
        url: '/tablepc/PrinterOperatingRecord/changeCloudPrinterOperatingRecord',
        method: 'post',
        data
    })
}

// 删除云打印机操作记录
export function deleteCloudPrinterOperatingRecord(data) {
    return request({
        url: '/tablepc/PrinterOperatingRecord/deleteCloudPrinterOperatingRecord',
        method: 'post',
        data
    })
}
